﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLite.Data;

namespace NorthWind
{
    public class DbHelper
    {
        private static DbConfiguration myDbConfiguration;
     
        private static void Init()
        {
            myDbConfiguration = DbConfiguration.Configure("Northwind").AddClass<NorthWind.Customers>(); 
        }
        public static DbConfiguration dbConfiguration
        {
            get
            {
                if (myDbConfiguration == null)
                {
                    Init();
                }
                return myDbConfiguration;
            }
             
        }
    }
}
